(*%*************************************************************************************************
 *                 ___                                                                              *
 *                / __|  ___   _ __    _ __   __ _   _ _   ___                                      *
 *                \__ \ / -_) | '  \  | '_ \ / _` | | '_| / -_)                                     *
 *                |___/ \___| |_|_|_| | .__/ \__,_| |_|   \___|                                     *
 *                                    |_|                                                           *
 ****************************************************************************************************
 *                                                                                                  *
 *                        Sempare Templating Engine                                                 *
 *                                                                                                  *
 *                                                                                                  *
 *         https://github.com/sempare/sempare-delphi-template-engine                                *
 ****************************************************************************************************
 *                                                                                                  *
 * Copyright (c) 2019-2024 Sempare Limited                                                          *
 *                                                                                                  *
 * Contact: info@sempare.ltd                                                                        *
 *                                                                                                  *
 * Licensed under the Apache Version 2.0 or the Sempare Commercial License                          *
 * You may not use this file except in compliance with one of these Licenses.                       *
 * You may obtain a copy of the Licenses at                                                         *
 *                                                                                                  *
 * https://www.apache.org/licenses/LICENSE-2.0                                                      *
 * https://github.com/sempare/sempare-delphi-template-engine/blob/master/docs/commercial.license.md *
 *                                                                                                  *
 * Unless required by applicable law or agreed to in writing, software                              *
 * distributed under the Licenses is distributed on an "AS IS" BASIS,                               *
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.                         *
 * See the License for the specific language governing permissions and                              *
 * limitations under the License.                                                                   *
 *                                                                                                  *
 *************************************************************************************************%*)

// -----------------------------------------------
{$IF CompilerVersion >= 25} // from XE4 onwards
{$DEFINE SUPPORT_JSON_DBX}
{$DEFINE BROKEN_ARRAY_BOUNDS}
{$ENDIF}
// -----------------------------------------------
{$IF CompilerVersion >= 26} // from XE5 onwards
{$UNDEF BROKEN_ARRAY_BOUNDS}
{$DEFINE SUPPORT_JSON}
{$DEFINE SEMPARE_TEMPLATE_FIREDAC}
{$ENDIF}
// -----------------------------------------------
{$IF CompilerVersion >= 27}  // from XE6 onwards
{$UNDEF SUPPORT_JSON_DBX}
{$ENDIF}
// -----------------------------------------------
{$IF CompilerVersion >= 28}  // from XE7 onwards
{$DEFINE SUPPORT_NET_ENCODING}
{$DEFINE SUPPORT_CLASS_CONSTRUCTOR}
{$ENDIF}
// -----------------------------------------------
{$IF CompilerVersion >= 29}  // from XE8 onwards
{$DEFINE SUPPORT_AS_VARREC}
{$ENDIF}
// -----------------------------------------------
{$IF CompilerVersion >= 30} // from Delphi 10.0 Seatle onwards
{$DEFINE SUPPORT_JSON_BOOL}
{$DEFINE SUPPORT_ENCODING}
{$DEFINE SUPPORT_HASH}
{$DEFINE SUPPORT_ADD_DYNARRAY}            // result := result + [istmt, istmt];
{$DEFINE SUPPORT_PASS_ARRAY_OF_INTERFACE} // call a method like dosomething([istmt, istmt])
{$DEFINE SUPPORT_WIN_REGISTRY}
{$ENDIF}
// -----------------------------------------------
{$IF CompilerVersion >= 31}  // from Delphi 10.1 Berlin onwards
{$DEFINE SUPPORT_BUFFERED_STREAM}
{$DEFINE SUPPORT_URL_FORM_ENCODING}
{$ENDIF}
// -----------------------------------------------
{$IF CompilerVersion >= 33}  // from Delphi 10.3 Rio onwards
	{$DEFINE SUPPORT_CUSTOM_MANAGED_RECORDS}
{$ENDIF}
// -----------------------------------------------
{$IF CompilerVersion >= 36}  // from Delphi 12 Athens onwards
{$DEFINE SUPPORT_DUNITX_JUNIT}
{$ENDIF}
// -----------------------------------------------
// Uncomment the following if Indy is not present
// {$DEFINE SEMPARE_TEMPLATE_NO_INDY}

{$IFNDEF SEMPARE_TEMPLATE_NO_INDY}
	{$DEFINE SEMPARE_TEMPLATE_INDY}
{$ENDIF}
// -----------------------------------------------

// the following uses the defines above to ensure the correct defines
// are in place
{$IF defined(SEMPARE_TEMPLATE_INDY) or defined(SUPPORT_NET_ENCODING)}
	//prefer net encoding if available
	{$IFDEF SUPPORT_NET_ENCODING}
		{$UNDEF SEMPARE_TEMPLATE_INDY}
	{$ENDIF}
	{$DEFINE SEMPARE_TEMPLATE_HAS_HTML_ENCODER}
{$ENDIF}
{$IFNDEF SEMPARE_TEMPLATE_HAS_HTML_ENCODER}
	{$MESSAGE 'No default html encoder present.'}
{$ENDIF}
